<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script type="text/javascript">
			window._AMapSecurityConfig = {
				securityJsCode: "8288fb16f4c226e29d63078d125aa379",
			};
		</script>
		<script src="https://webapi.amap.com/loader.js"></script>
		<script type="text/javascript">
			AMapLoader.load({
				key: "932bc3d0e64625f862c38ceaf1dcba96", // 申请好的Web端开发者Key，首次调用 load 时必填
				version: "2.0", // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
			})
				.then((AMap) => {
					const map = new AMap.Map("container", {
						viewMode: "2D", // 默认使用 2D 模式
						zoom: 11, //初始化地图层级
						center: [103.957792, 30.990331], //初始化地图中心点
					});
				})
				.catch((e) => {
					console.error(e); //加载错误提示
				});
		</script>
	</head>
	<body class="ride">
		<div class="navbar">
			<!-- <a href="#">跑步</a>
            <a href="#">骑行</a>
            <a href="sports_crouse.html" class="active">课程训练</a> -->
		</div>
		<main class="main">
			<div class="min-top">
				目前累计骑行距离:
				<p><span id="meter">99.99</span>公里</p>
			</div>
			<!-- 地图 -->
			<div class="map">
				<div id="container"></div>
			</div>
			<div class="btn">GO</div>
		</main>
		<!-- 模态框 -->
		<div class="box"></div>
		<div class="box2">3</div>
		<!-- 底部导航 -->
		<nav class="tabbar"></nav>
	</body>
</html>
